package com.nf.practice.downloadFile;

import com.alibaba.excel.EasyExcel;
import org.junit.jupiter.api.Test;

import java.util.List;

public class ReadContract {
    /**
     * 同步读取
     */
    @Test
    public void synchronousRead() {
        String fileName = "E:/upload/统一运营平台上半年合同.xls";
        // 读取到的数据
        List<ContractData> list = EasyExcel.read(fileName)
                .head(ContractData.class)
                .sheet()
                .doReadSync();
        System.out.println(list);
    }

}
